def main():
    try:
        with open('data/小龙人.png', 'rb') as f1:
            data = f1.read()
            print('f1 = ', type(data), end='\n')
        with open('data/吉吉国王.png', 'wb') as f2:
            f2.write(data)
    except FileNotFoundError:
        print('File data/小龙人.png not found')
    except IOError as e:
        print(e.strerror, end='\n')


if __name__ == '__main__':
    main()


